package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_ChatLog", catalog="Id")
public class EKnowChatLog extends BaseEntity<EKnowChatLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SceneId", nameJava="sceneId", typeDataBase="bigint")
	private Long sceneId;
	@YsField(nameDataBase="AiModelId", nameJava="aiModelId", typeDataBase="bigint")
	private Long aiModelId;
	@YsField(nameDataBase="KnowledgeBaseId", nameJava="knowledgeBaseId", typeDataBase="varchar")
	private String knowledgeBaseId;
	@YsField(nameDataBase="ChatId", nameJava="chatId", typeDataBase="varchar")
	private String chatId;
	@YsField(nameDataBase="BaiDuChatId", nameJava="baiDuChatId", typeDataBase="varchar")
	private String baiDuChatId;
	@YsField(nameDataBase="PromptId", nameJava="promptId", typeDataBase="bigint")
	private Long promptId;
	@YsField(nameDataBase="Question", nameJava="question", typeDataBase="text")
	private String question;
	@YsField(nameDataBase="Answer", nameJava="answer", typeDataBase="text")
	private String answer;
	@YsField(nameDataBase="AnswerUserId", nameJava="answerUserId", typeDataBase="varchar")
	private String answerUserId;
	@YsField(nameDataBase="TokensCount", nameJava="tokensCount", typeDataBase="int")
	private Integer tokensCount;
	@YsField(nameDataBase="BaiDuCreated", nameJava="baiDuCreated", typeDataBase="int")
	private Integer baiDuCreated;
	@YsField(nameDataBase="Evaluate", nameJava="evaluate", typeDataBase="varchar")
	private String evaluate;
	@YsField(nameDataBase="IsReSet", nameJava="isReSet", typeDataBase="tinyint")
	private Integer isReSet;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="IsKnowledge", nameJava="isKnowledge", typeDataBase="tinyint")
	private Integer isKnowledge;
	@YsField(nameDataBase="KnowledgeToken", nameJava="knowledgeToken", typeDataBase="int")
	private Integer knowledgeToken;
	@YsField(nameDataBase="WholeSendMsg", nameJava="wholeSendMsg", typeDataBase="text")
	private String wholeSendMsg;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowChatLog setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getSceneId() {
		return sceneId;
	}
	public EKnowChatLog setSceneId(Long sceneId) {
		this.sceneId = sceneId;
		return this;
	}
	public Long getAiModelId() {
		return aiModelId;
	}
	public EKnowChatLog setAiModelId(Long aiModelId) {
		this.aiModelId = aiModelId;
		return this;
	}
	public String getKnowledgeBaseId() {
		return knowledgeBaseId;
	}
	public EKnowChatLog setKnowledgeBaseId(String knowledgeBaseId) {
		this.knowledgeBaseId = knowledgeBaseId;
		return this;
	}
	public String getChatId() {
		return chatId;
	}
	public EKnowChatLog setChatId(String chatId) {
		this.chatId = chatId;
		return this;
	}
	public String getBaiDuChatId() {
		return baiDuChatId;
	}
	public EKnowChatLog setBaiDuChatId(String baiDuChatId) {
		this.baiDuChatId = baiDuChatId;
		return this;
	}
	public Long getPromptId() {
		return promptId;
	}
	public EKnowChatLog setPromptId(Long promptId) {
		this.promptId = promptId;
		return this;
	}
	public String getQuestion() {
		return question;
	}
	public EKnowChatLog setQuestion(String question) {
		this.question = question;
		return this;
	}
	public String getAnswer() {
		return answer;
	}
	public EKnowChatLog setAnswer(String answer) {
		this.answer = answer;
		return this;
	}
	public String getAnswerUserId() {
		return answerUserId;
	}
	public EKnowChatLog setAnswerUserId(String answerUserId) {
		this.answerUserId = answerUserId;
		return this;
	}
	public Integer getTokensCount() {
		return tokensCount;
	}
	public EKnowChatLog setTokensCount(Integer tokensCount) {
		this.tokensCount = tokensCount;
		return this;
	}
	public Integer getBaiDuCreated() {
		return baiDuCreated;
	}
	public EKnowChatLog setBaiDuCreated(Integer baiDuCreated) {
		this.baiDuCreated = baiDuCreated;
		return this;
	}
	public String getEvaluate() {
		return evaluate;
	}
	public EKnowChatLog setEvaluate(String evaluate) {
		this.evaluate = evaluate;
		return this;
	}
	public Integer getIsReSet() {
		return isReSet;
	}
	public EKnowChatLog setIsReSet(Integer isReSet) {
		this.isReSet = isReSet;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public EKnowChatLog setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Integer getIsKnowledge() {
		return isKnowledge;
	}
	public EKnowChatLog setIsKnowledge(Integer isKnowledge) {
		this.isKnowledge = isKnowledge;
		return this;
	}
	public Integer getKnowledgeToken() {
		return knowledgeToken;
	}
	public EKnowChatLog setKnowledgeToken(Integer knowledgeToken) {
		this.knowledgeToken = knowledgeToken;
		return this;
	}
	public String getWholeSendMsg() {
		return wholeSendMsg;
	}
	public EKnowChatLog setWholeSendMsg(String wholeSendMsg) {
		this.wholeSendMsg = wholeSendMsg;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowChatLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowChatLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowChatLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowChatLog eKnowChatLog(
		Long sceneId,
		Long aiModelId,
		String knowledgeBaseId,
		String chatId,
		String baiDuChatId,
		Long promptId,
		String question,
		String answer,
		String answerUserId,
		Integer tokensCount,
		Integer baiDuCreated,
		String evaluate,
		Integer isReSet,
		String userId,
		Integer isKnowledge,
		Integer knowledgeToken,
		String wholeSendMsg,
		Integer status
			) {
		EKnowChatLog entity = new EKnowChatLog();
		entity.setSceneId(sceneId);
		entity.setAiModelId(aiModelId);
		entity.setKnowledgeBaseId(knowledgeBaseId);
		entity.setChatId(chatId);
		entity.setBaiDuChatId(baiDuChatId);
		entity.setPromptId(promptId);
		entity.setQuestion(question);
		entity.setAnswer(answer);
		entity.setAnswerUserId(answerUserId);
		entity.setTokensCount(tokensCount);
		entity.setBaiDuCreated(baiDuCreated);
		entity.setEvaluate(evaluate);
		entity.setIsReSet(isReSet);
		entity.setUserId(userId);
		entity.setIsKnowledge(isKnowledge);
		entity.setKnowledgeToken(knowledgeToken);
		entity.setWholeSendMsg(wholeSendMsg);
		entity.setStatus(status);
		return entity;
	}
}